package com.wtf.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * desc:
 *
 * @author tengfei wang
 * @version 1.0
 * @date Created in 2/11/2020
 */
@Component
@Slf4j
public class EmailFeignFallback implements EmailFeignService {

    @Override
    public boolean sendEmail(String email, Integer code) {
        log.error("发送code {} to {} 异常", code, email);
        return false;
    }
}
